/**
 * Created by Administrator on 2018/11/28 0028.
 */
import {getRequest, postRequest, putRequest, deleteRequest, uploadFileRequest} from './api'
// 登陆
export const login = (params) => {
  return postRequest('/api/check_employee_login.rm', params)
};
// 修改用户密码
export const resetpwd = (params) => {
  return postRequest('/api/employee_resetpwd.rm', params)
};
// 修改用户密码
export const resetOldpw = (params) => {
  return postRequest('/api/employee_reset_oldpwd.rm', params)
};

// 获取用户登录信息
export const getuserInfo = (params) => {
  return postRequest('/api/get_employee_info.rm', params)
};

//生成员工二维码
export const createQrcode = (params) => {
  return postRequest('/api/employee_create_qrcode.rm', params)
};

// 数字码收款确认
export const gathering_money = (params) => {
  return postRequest('/api/get_gathering_money.rm', params)
};

// 收款确认页
export const getPayUnderInfo = (params) => {
  return postRequest('/api/get_payunder_orderinfo.rm', params)
};

// 收款确认提交
export const gatheringMoneySub = (params) => {
  return postRequest('/api/gathering_money_sub.rm', params)
};

//图片上传
export const uploadImg = (params) => {
  return uploadFileRequest('/api/employee_upload_img.rm', params)
};
//图片上传
export const uploadheadImg = (params) => {
  return uploadFileRequest('/api/employee_headimg_upload.rm', params)
};

// 收款确认提交
export const gatheringRecordDetail = (params) => {
  return postRequest('/api/gathering_record_detail.rm', params)
};

// 收款确认更新
export const gatheringUpdate = (params) => {
  return postRequest('/api/gathering_update.rm', params)
};



// 收款数据
export const shoukuanjilu = (params) => {
  return postRequest('/api/gathering_recordlist.rm', params)
};

// 支付方式列表
export const getPayWayList = (params) => {
  return postRequest('/api/get_paywaylist.rm', params)
};

//使用验证
export const checkAccountGoods = (params) => {
  return postRequest('/api/get_check_accountgoods.rm', params)
};

//得到物品信息
export const getAccountGoodsInfo = (params) => {
  return postRequest('/api/get_accountgoods_info.rm', params)
};

//单次物品使用验证
export const accountGoodsDanciUseCheck = (params) => {
  return postRequest('/api/use_check_danci_accountgoods.rm', params)
};

//卡物品使用验证
export const accountGoodsCardUseCheck = (params) => {
  return postRequest('/api/use_check_card_accountgoods.rm', params)
};

//得到员工能核销
export const getEmployeeCancheck = (params) => {
  return postRequest('/api/get_employee_cancheck.rm', params)
};

//得到员工能核销免费餐饮
export const getEmployeeCancheckFree = (params) => {
  return postRequest('/api/get_employee_free_cancheck.rm', params)
};

//核销免费餐饮
export const employeeCheckFree = (params) => {
  return postRequest('/api/use_check_free_accountgoods.rm', params)
};

//核销记录
export const employeeCheckRecordList = (params) => {
  return postRequest('/api/employee_check_record.rm', params)
};

//提交员工能核销
export const submitEmployeeCancheck = (params) => {
  return postRequest('/api/employee_check_card_sub.rm', params)
};

//现金存款提交
export const employeeDepositSub = (params) => {
  return postRequest('/api/employee_deposit_sub.rm', params)
};

//存款记录
export const cunkuanjilu = (params) => {
  return postRequest('/api/employee_deposit_recordlist.rm', params)
};

//存款记录详情
export const cunkuanjiluDetail = (params) => {
  return postRequest('/api/employee_deposit_recorddetail.rm', params)
};

//存款记录修改提交
export const updateCunkuanjilu = (params) => {
  return postRequest('/api/employee_deposit_updaterecord.rm', params)
};

//我的业绩
export const employeeAchievement = (params) => {
  return postRequest('/api/employee_achievement_list.rm', params)
};


//我的会员
export const employeeVip = (params) => {
  return postRequest('/api/employee_recommendvip_record.rm', params)
};

//合卡备注
export const employeeRemarkHeka = (params) => {
  return postRequest('/api/employee_remark_heka.rm', params)
};

//贵宾卡完善资料
export const goPerfectVipcard = (params) => {
  return postRequest('/api/user_perfect_vipcard.rm', params)
};

//证件识别上传
export const imgOcrUpload = (params) => {
  return postRequest('/api/employee_getOcrInfo.rm', params)
};

// 获取用户登录信息
export const userInfo = (params) => {
  return postRequest('/api/get_userinfo.rm', params)
};

//销售端新增会员详情
export const employeeViprecordDetail = (params) => {
  return postRequest('/api/employee_viprecord.rm', params)
};

//区域经理审核通过
export const employeeManagerCheck = (params) => {
  return postRequest('/api/employee_manager_check.rm', params)
};

//新增会员
export const addhuiyuan = (params) => {
  return postRequest('/api/employee_addvip.rm', params)
};

//修改会员
export const updateHuiyuan = (params) => {
  return postRequest('/api/employee_update_vip.rm', params)
};

//新增会员记录
export const addhuiyuanRecordList = (params) => {
  return postRequest('/api/employee_viprecord_list.rm', params)
};

//已上架会员卡
export const getOnshelfVipcard = (params) => {
  return postRequest('/api/employee_getallonshelf_vipcard.rm', params)
};

//会员卡结束日期
export const getEndDate = (params) => {
  return postRequest('/api/employee_getvipcard_enddate.rm', params)
};

//退卡表单数据
export const getTuikaData = (params) => {
  return postRequest('/api/employee_backcard_recordlist.rm', params)
};

//可退卡数据
export const getCanTuikaData = (params) => {
  return postRequest('/api/employee_canback_list.rm', params)
};

//搜索会员卡
export const searchUserVipcard = (params) => {
  return postRequest('/api/employee_search_user_vipcard.rm', params)
};

//退卡提交
export const tuikaSub = (params) => {
  return postRequest('/api/employee_backcard_sub.rm', params)
};
//现办现退提交
export const nowRefundTuikaSub = (params) => {
  return postRequest('/api/employee_now_refund_backcard.rm', params)
};

//补录工单数据
export const getAddCheckData = (params) => {
  return postRequest('/api/employee_addcheck_list.rm', params)
};

//补录提交数据
export const addCheckDataSub = (params) => {
  return postRequest('/api/employee_addcheck_sub.rm', params)
};
//减录核验数据
export const reduceCheckDataSub = (params) => {
  return postRequest('/api/employee_reducecheck_sub.rm', params)
};

export const cancelTuika = (params) => {
  return postRequest('/api/employee_cancelbackcard_sub.rm', params)
};

//我的员工
export const getMyEmployee = (params) => {
  return postRequest('/api/employee_dependence.rm', params)
};

export const employeeFrozen = (params) => {
  return postRequest('/api/employee_frozen.rm', params)
};

//预约列表
export const getAppointmentList = (params) => {
  return postRequest('/api/employee_appointment_list_data.rm', params)
};

//预约审核
export const employeeAppointmentCheckSub = (params) => {
  return postRequest('/api/employee_appointment_check_sub.do', params)
};

//销售端App版本
export const employeeAppVersion = (params) => {
  return postRequest('/api/employee_app_version.rm', params)
};
